package one.stand.mapper;

import one.stand.model.essay.EssayShareRecordModel;
import one.stand.request.essay.EssayRecordForm;

import java.util.List;

/**
 * <p>
 * 文章分享记录 Mapper 接口
 * </p>
 *
 * @author luoyang
 * @since 2020-05-07
 */
public interface EssayShareRecordMapper {

    int update(EssayShareRecordModel model);

    int insert(EssayShareRecordModel model);

    List<EssayShareRecordModel> queryAll(EssayShareRecordModel model);

    int deleteById(EssayShareRecordModel model);

    EssayShareRecordModel queryById(EssayShareRecordModel model);


    /**
     * 按文章 员工 公司查询分享记录
     * @param request
     * @return
     */
    EssayShareRecordModel queryRecord(EssayRecordForm request);

    EssayShareRecordModel queryByDyanmicId(String dynamicId);
}
